import axios from 'axios'
import apiUrls from 'common/api-urls'

export function getAllExercise(data) {
  return axios.get(apiUrls.getAllExercise, {
    params: data
  })
}

export function getExerciseSearch(data) {
  return axios.get(apiUrls.getExerciseSearch, {
    params: data
  })
}

export function getExerciseReport(data) {
  return axios.get(`${apiUrls.getExerciseReport}/${data.exerciseId}`, {
    params: data
  })
}

export function getExerciseReportState(data) {
  return axios.get(`${apiUrls.getExerciseReportState}/${data.exerciseId}`, {
    params: data
  })
}
